package ch.selise.archtool.ui.states;

import java.awt.EventQueue;

import ch.selise.archtool.ui.Context;
import ch.selise.archtool.ui.ReportGeneratorWindow;
import ch.selise.designpattern.ReportGeneratorUI;

public class ReportModuleState implements State {

	Context context;
	public ReportModuleState(Context context){
		this.context = context;
	}
	@Override
	public void show() {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ReportGeneratorWindow frame = new ReportGeneratorWindow(context);
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	@Override
	public void process() {
		// TODO Auto-generated method stub

	}

	@Override
	public void cancel() {
		// TODO Auto-generated method stub

	}

}
